﻿<%@ Page Title="Change Password :: Re-SeSS" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="ReSeSSApplication.ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"></asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="bodyContent" runat="server">


    <div class="navbar"><div class="navbar-inner">
    <div class="container">
        
        <a class="brand" href="./Index.aspx">Re-SeSS</a>
        
        <% if (loggedInUserDTO.UserType == "Administrator")
           { %>
        <ul class="nav">
            <li><a href="AdministratorDashboard.aspx">Dashboard</a></li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Administrator <b class="caret"></b></a>
                <ul class="dropdown-menu">
                    <li><a href="RegisterUser.aspx">Register User</a></li>
                    <li><a href="ManageUsers.aspx">Manage Users</a></li>
                </ul>
            </li>
        </ul>
        <% }
           else if (loggedInUserDTO.UserType == "User")
           { %>
        <ul class="nav">
            <li><a href="UserDashboard.aspx">Dashboard</a></li>
            <li><a href="NewStudy.aspx">New Study</a></li>
            <li><a href="PreviousStudies.aspx">Previous Studies</a></li>
        </ul>
        <%} %>
        
        <ul class="nav pull-right">
            <li class="dropdown">
                <a data-toggle="dropdown" class="dropdown-toggle" href="#"><%=loggedInUserDTO.FirstName%>&nbsp;<%=loggedInUserDTO.LastName%> <b class="caret"></b></a>
                <ul class="dropdown-menu">
                    <li><a href="Profile.aspx">Profile</a></li>
                    <li><a href="ChangePassword.aspx">Change Password</a></li>
                    <li class="divider"></li>
                    <li><a href="LogOut.aspx">Logout</a></li></li>
                </ul>
            </li>
        </ul>
        
    </div>
    </div></div><!--navbar ends-->


    <div class="well" id="ChangePasswordForm">
    
    	<div class="alert alert-success" id="AlertSuccess" runat="server"></div>
        <div class="alert alert-error" id="AlertError" runat="server"></div>
    
        <div class="form-horizontal">
        <fieldset>
        
            <legend>Change Password</legend>
            
            <div class="control-group">
                <asp:Label ID="lblOldPassword" runat="server" Text="Current Password" AssociatedControlID="txtOldPassword" CssClass="control-label"></asp:Label>
                <div class="controls">
                    <asp:TextBox ID="txtOldPassword" runat="server" TextMode="Password" CssClass="input-xlarge"></asp:TextBox>
                    <p class="help-inline"></p>
                </div>
            </div>

            <div class="control-group">
                <asp:Label ID="lblPassword" runat="server" Text="New Password" AssociatedControlID="txtPassword" CssClass="control-label"></asp:Label>
                <div class="controls">
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="input-xlarge"></asp:TextBox>
                    <p class="help-inline"></p>
                </div>
            </div>
            
            <div class="control-group">
                <asp:Label ID="lblConfirmPassword" runat="server" Text="Confirm Password" AssociatedControlID="txtConfirmPassword" CssClass="control-label"></asp:Label>
                <div class="controls">
                    <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" CssClass="input-xlarge"></asp:TextBox>
                    <p class="help-inline"></p>
                </div>
            </div>
            
            <div class="form-actions">
                <asp:Button ID="ChangePasswordButton" runat="server" Text="Change Password" CssClass="btn btn-primary" onclick="ChangePasswordButton_Click" />&nbsp;&nbsp;&nbsp;
                <input type="reset" value="Reset" class="btn" />
            </div>
            
        </fieldset>
        </div>
    </div><!--body ends-->

</asp:Content>
